/* Common styles for all pages */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    color: #333;
    text-align: center;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

a {
    display: inline-block;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

a:hover {
    background-color: #aaaa22;
}

/* Navbar styles */
.navbar {
    background-color: #007bff;
    padding: 10px 0;
}

.navbar-brand, .nav-link {
    color: #fff;
}

.navbar-brand:hover, .nav-link:hover {
    color: #f0f0f0;
}

/* Footer styles */
.footer {
    flex-shrink: 0;
    background-color: #f5f5f5;
    text-align: center;
    padding: 20px 0;
}

/* Form styles */
form {
    margin-bottom: 20px;
}

/* 调整注册和登录页面的表单宽度 */
@media (min-width: 768px) {
    .container .row .col-md-6 {
        flex: 0 0 auto;
        width: 80%; /* 增加宽度到80% */
    }
}

@media (max-width: 767px) {
    .container .row .col-md-6 {
        width: 100%; /* 在小屏幕上使用全宽 */
    }
}

input[type="text"], input[type="password"], input[type="email"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 改进表单字段的样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    padding: 2rem;
}

/* 移除 .row 和 .col 的默认内边距 */
.row {
    margin-left: 0;
    margin-right: 0;
}

.col, [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Captcha styles */
.captcha-container {
    margin-bottom: 15px;
}

.captcha-image {
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.refresh-captcha {
    display: inline-block;
    margin-left: 10px;
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
}

.refresh-captcha:hover {
    text-decoration: underline;
}